package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 货物实体类
 */
@Data
@TableName("cargo")
public class Cargo implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 货物ID
     */
    @TableId(value = "cargo_id", type = IdType.AUTO)
    private Long cargoId;
    
    /**
     * 货物名称
     */
    private String cargoName;
    
    /**
     * 货物类型（普通货物/危险品/冷藏货物）
     */
    private String cargoType;
    
    /**
     * 货物编码
     */
    private String cargoCode;
    
    /**
     * 所属客户ID
     */
    private Long customerId;
    
    /**
     * 数量
     */
    private BigDecimal quantity;
    
    /**
     * 计量单位（吨/箱）
     */
    private String unit;
    
    /**
     * 进港时间
     */
    private Date entryTime;
    
    /**
     * 出港时间
     */
    private Date exitTime;
    
    /**
     * 仓储位置
     */
    private String warehouseLocation;
    
    /**
     * 船舶名称
     */
    private String vesselName;
    
    /**
     * 贸易术语(CIF/CFR等)
     */
    private String tradeTerms;
    
    /**
     * 状态（1-在港 2-已出港）
     */
    private Integer status;
    
    /**
     * 备注
     */
    private String remark;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 更新时间
     */
    private Date updateTime;
    
    // getter和setter方法
    public Long getCargoId() {
        return cargoId;
    }
    
    public void setCargoId(Long cargoId) {
        this.cargoId = cargoId;
    }
    
    public String getCargoName() {
        return cargoName;
    }
    
    public void setCargoName(String cargoName) {
        this.cargoName = cargoName;
    }
    
    public String getCargoType() {
        return cargoType;
    }
    
    public void setCargoType(String cargoType) {
        this.cargoType = cargoType;
    }
    
    public String getCargoCode() {
        return cargoCode;
    }
    
    public void setCargoCode(String cargoCode) {
        this.cargoCode = cargoCode;
    }
    
    public Long getCustomerId() {
        return customerId;
    }
    
    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }
    
    public BigDecimal getQuantity() {
        return quantity;
    }
    
    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }
    
    public String getUnit() {
        return unit;
    }
    
    public void setUnit(String unit) {
        this.unit = unit;
    }
    
    public Date getEntryTime() {
        return entryTime;
    }
    
    public void setEntryTime(Date entryTime) {
        this.entryTime = entryTime;
    }
    
    public Date getExitTime() {
        return exitTime;
    }
    
    public void setExitTime(Date exitTime) {
        this.exitTime = exitTime;
    }
    
    public String getWarehouseLocation() {
        return warehouseLocation;
    }
    
    public void setWarehouseLocation(String warehouseLocation) {
        this.warehouseLocation = warehouseLocation;
    }
    
    public String getVesselName() {
        return vesselName;
    }
    
    public void setVesselName(String vesselName) {
        this.vesselName = vesselName;
    }
    
    public String getTradeTerms() {
        return tradeTerms;
    }
    
    public void setTradeTerms(String tradeTerms) {
        this.tradeTerms = tradeTerms;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public String getRemark() {
        return remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    public Date getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public Date getUpdateTime() {
        return updateTime;
    }
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
} 